import 'package:bitcatflutter/common/common_constant.dart';
import 'package:flutter/material.dart';

class ButtonPage extends StatelessWidget {
  const ButtonPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text('Button'),
      ),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(20.0),
          child: ListView(
            children:  [
               ElevatedButton(onPressed: (){}, child: const Text("登录")),
               OutlinedButton(onPressed: (){}, child: const Text("登录")),
               FilledButton(onPressed: (){}, child: const Text("登录")),
               FilledButton.tonalIcon(onPressed: (){}, icon: const Icon(Icons.person), label: const Text("登录")),
               TextButton(onPressed: (){}, child: const Text("登录")),
               DropdownButton(
                   value: "钢琴",
                   items: ['钢琴',"篮球","吉他"].map((e) => DropdownMenuItem(
                   value: e,
                   child: Text(e))).toList(), onChanged: (value){})
            ],
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(onPressed: (){},child: Icon(Icons.add),),
    );
  }
}
